diff options
Diffstat (limited to 'src/routes/(app)/[username]')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.server.ts | 1 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.server.ts b/src/routes/(app)/[username]/(profile)/+page.server.ts index 9c9be68a..ed4ee58c 100644 --- a/src/routes/(app)/[username]/(profile)/+page.server.ts +++ b/src/routes/(app)/[username]/(profile)/+page.server.ts @@ -1,6 +1,7 @@ import { auth, get } from "$lib/utils"; export async function load({ cookies, depends, parent }) { + depends("app:payments"); depends("app:items"); let { subject } = await parent(); diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 98b77fc9..03fbc454 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -14,7 +14,7 @@ $: rate = rates[currency]; $: total = items.reduce((a, b) => a + b.price * b.quantity, 0); - let refresh = (d) => ({ items, subject, user, rates } = d); + let refresh = (d) => ({ accounts, items, subject, user, rates } = d); $: refresh(data); let install = async () => { @@ -41,16 +41,16 @@ {/each} <div class="flex justify-center gap-2"> - <button - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white w-full justify-center" - > - <a href={`/account/setup`}> + <a href={`/account/setup`} class="contents"> + <button + class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white w-full justify-center" + > <div class="mx-auto flex gap-2"> <Icon icon="plus" style="w-8 mx-auto invert" /> <div class="my-auto text-xl whitespace-nowrap">Add account</div> </div> - </a> - </button> + </button> + </a> {#if $installPrompt} <button |
